<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>B2C网站</title>
<link rel="stylesheet" href="__STATIC__/css/user.css">
</head>
<body>
<!-- 网页导航部分 -->
<div class="navbar">
    <div class="user-info">
        {notempty name="$Request.session.username"}
        欢迎您：{$Request.session.username} 
        <a href="{:Url('user/index/logout')}">退出</a>
        {/notempty}
        {empty name="$Request.session.username"}
        <a href="{:Url('user/index/login')}">登录</a>
        <a href="{:Url('user/index/register')}">注册</a>
        {/empty}
    </div>
</div>
<div class="navbar-a">
        <a href="{:Url('user/index/index')}">首页</a>
        <a href="{:Url('user/index/search')}">搜索</a>
        <a href="{:Url('user/orders/shoppingcar')}">我的购物车</a>
        <a href="{:Url('user/orders/myorders')}">我的订单</a>
</div>

<div class="main" >
    <!-- 网页左边显示类别 -->
    <div class="sidebar">
        <p>所有类别</p>
        {volist name='clist' id='c'}
        <a href="{:Url('user/index/product_list',['cid' => $c.cId])}">{$c.cName}</a>
        {/volist}
    </div>
    <!-- 网页主体内容部分 -->
    <div class="content">
        {__CONTENT__}
    </div>
</div>
</body>
</html>